/*
 * utils.c
 *
 *  Created on: 2020年2月20日
 *      Author: Administrator
 */

#include <stdio.h>
#include "../include/utils.h"

void swap(ElemType* a, ElemType* b) {
	ElemType temp = *a;
	*a = *b;
	*b = temp;
}

void print_array(int* array, int length) {
	for (int i = 0; i < length; ++i) {
		printf("%d ", array[i]);
	}
	printf("\n");
}
